﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.MeshRenderer
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;
using UnityEngine.Scripting;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Renders meshes inserted by the MeshFilter or TextMesh.</para>
  /// </summary>
  [NativeHeader("Runtime/Graphics/Mesh/MeshRenderer.h")]
  public class MeshRenderer : Renderer
  {
    [RequiredByNativeCode]
    private void DontStripMeshRenderer()
    {
    }

    /// <summary>
    ///   <para>Vertex attributes in this mesh will override or add attributes of the primary mesh in the MeshRenderer.</para>
    /// </summary>
    public extern Mesh additionalVertexStreams { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }

    /// <summary>
    ///   <para>Vertex attributes that override the primary mesh when the MeshRenderer uses lightmaps in the Realtime Global Illumination system.</para>
    /// </summary>
    public extern Mesh enlightenVertexStream { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }

    /// <summary>
    ///   <para>Index of the first sub-mesh to use from the Mesh associated with this MeshRenderer (Read Only).</para>
    /// </summary>
    public extern int subMeshStartIndex { [NativeName("GetSubMeshStartIndex"), MethodImpl(MethodImplOptions.InternalCall)] get; }

    /// <summary>
    ///   <para>Specifies the relative lightmap resolution of this object. (Editor only)</para>
    /// </summary>
    public extern float scaleInLightmap { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }

    /// <summary>
    ///   <para>Determines how the object will receive global illumination. (Editor only)</para>
    /// </summary>
    public extern ReceiveGI receiveGI { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }

    /// <summary>
    ///   <para>When enabled, seams in baked lightmaps will get smoothed. (Editor only)</para>
    /// </summary>
    public extern bool stitchLightmapSeams { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
  }
}
